//
//  HawkRequest.m
//  Air
//
//  Created by 沃特奇 on 16/10/11.
//  Copyright © 2016年 董国政. All rights reserved.
//

#import "HawkRequest.h"

@implementation HawkRequest

+(NSString *)WithUserName:(NSString *)user_id WithPassWord:(NSString *)user_pass
{
    NSString *adminStr=[NSString stringWithFormat:@"%@%@%@",user_id,@":",user_pass];
    Base64 *base=[[Base64 alloc]init];
    NSString *str=[base getBase64With:adminStr];
    NSString *authorization=[NSString stringWithFormat:@"Basic %@",str];
    return authorization;
}



@end
